{template 'common/header-base'}
	<div class="navbar navbar-inverse navbar-static-top" role="navigation" style="position:static;">
		<div class="container-fluid">
			<ul class="nav navbar-nav">
				<li><a href="./?refresh"><i class="fa fa-reply-all"></i>返回系统</a></li>
				<li class="active"><a href="{php echo url('home/welcome_lw/ext');}"><i class="fa fa-cubes"></i>活动管理</a></li>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li class="dropdown topbar-notice">
					<a type="button" data-toggle="dropdown">
						<i class="fa fa-bell"></i>
						<span class="badge" id="notice-total">0</span>
					</a>
					<div class="dropdown-menu" aria-labelledby="dLabel">
						<div class="topbar-notice-panel">
							<div class="topbar-notice-arrow"></div>
							<div class="topbar-notice-head">
								<span>系统公告</span>
								<a href="{php echo url('article/notice-show/list');}" class="pull-right">更多公告>></a>
							</div>
							<div class="topbar-notice-body">
								<ul id="notice-container"></ul>
							</div>
						</div>
					</div>
				</li>
				<li class="dropdown">
					<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" style="display:block; max-width:200px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; "><i class="fa fa-group"></i>{$_W['account']['name']} <b class="caret"></b></a>
					<ul class="dropdown-menu">
						{if $_W['role'] != 'operator'}
						<li><a href="{url 'account/post' array('uniacid' => $_W['uniacid'])}" target="_blank"><i class="fa fa-weixin fa-fw"></i> 编辑当前账号资料</a></li>
						{/if}
						<li><a href="{url 'account/display'}" target="_blank"><i class="fa fa-cogs fa-fw"></i> 管理其它公众号</a></li>
						<li><a href="{url 'utility/emulator'}" target="_blank"><i class="fa fa-mobile fa-fw"></i> 模拟测试</a></li>
					</ul>
				</li>
				<li class="dropdown">
					<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" style="display:block; max-width:185px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; "><i class="fa fa-user"></i>{$_W['user']['username']} ({if $_W['role'] == 'founder'}系统管理员{elseif $_W['role'] == 'manager'}公众号管理员{else}公众号操作员{/if}) <b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="{url 'user/profile/profile'}" target="_blank"><i class="fa fa-weixin fa-fw"></i> 我的账号</a></li>
						<li><a href="{url 'user/logout'}"><i class="fa fa-sign-out fa-fw"></i> 退出系统</a></li>
					</ul>
				</li>
			</ul>
		</div>
	</div>
	<div class="container-fluid">
		<div class="row">
				<div class="col-xs-12 col-sm-3 col-lg-2 big-menu">
					<div class="panel panel-default">
						<div class="panel-heading">
							<h4 class="panel-title">用户管理</h4>
							<a class="panel-collapse collapsed" data-toggle="collapse" href="#frame-1">
								<i class="fa fa-chevron-circle-down"></i>
							</a>
						</div>
						<ul class="list-group collapse in" id="frame-1">
							<li class="list-group-item {if $_GPC['do']=='user_manage' && $op == 'post'}active{/if}" onclick="window.location.href = './index.php?c=site&a=entry&op=post&id=10&do=user_manage&m=meepo_xianchang';" style="cursor:pointer; overflow:hidden;" kw="添加用户">
								添加用户
							</li>
							<li class="list-group-item {if $_GPC['do']=='user_manage' && $op != 'post'}active{/if}" onclick="window.location.href = './index.php?c=site&a=entry&id=10&status=1&do=user_manage&m=meepo_xianchang';" style="cursor:pointer; overflow:hidden;" kw="签到用户列表">
								签到用户列表
							</li>
						</ul>
					</div>
					
					<div class="panel panel-default">
						<div class="panel-heading">
							<h4 class="panel-title">抽奖管理</h4>
							<a class="panel-collapse collapsed" data-toggle="collapse" href="#frame-2">
								<i class="fa fa-chevron-circle-down"></i>
							</a>
						</div>
						<ul class="list-group collapse in" id="frame-2">
							<li class="list-group-item {if $_GPC['do']=='lottory_manage'}active{/if}" onclick="window.location.href = './index.php?c=site&a=entry&id=10&do=lottory_manage&m=meepo_xianchang';" style="cursor:pointer; overflow:hidden;" kw="奖项配置">
								奖项配置
							</li>
							<li class="list-group-item {if $_GPC['do']=='lottory_record' && $award_id==12}active{/if}" onclick="window.location.href = './index.php?c=site&a=entry&id=10&award_id=12&do=lottory_record&m=meepo_xianchang';" style="cursor:pointer; overflow:hidden;" kw="三等奖中奖列表">
								三等奖中奖列表
							</li>
							<li class="list-group-item {if $_GPC['do']=='lottory_record' && $award_id==11}active{/if}" onclick="window.location.href = './index.php?c=site&a=entry&id=10&award_id=11&do=lottory_record&m=meepo_xianchang';" style="cursor:pointer; overflow:hidden;" kw="二等奖中奖列表">
								二等奖中奖列表
							</li>
							<li class="list-group-item {if $_GPC['do']=='lottory_record' && $award_id==10}active{/if}" onclick="window.location.href = './index.php?c=site&a=entry&id=10&award_id=10&do=lottory_record&m=meepo_xianchang';" style="cursor:pointer; overflow:hidden;" kw="一等奖中奖列表">
								一等奖中奖列表
							</li>
							<li class="list-group-item {if $_GPC['do']=='lottory_record' && $award_id==9}active{/if}" onclick="window.location.href = './index.php?c=site&a=entry&id=10&award_id=9&do=lottory_record&m=meepo_xianchang';" style="cursor:pointer; overflow:hidden;" kw="特等奖中奖列表">
								特等奖中奖列表
							</li>
							<li class="list-group-item {if $_GPC['do']=='lottory_record' && $award_id==19}active{/if}" onclick="window.location.href = './index.php?c=site&a=entry&id=10&award_id=19&do=lottory_record&m=meepo_xianchang';" style="cursor:pointer; overflow:hidden;" kw="神秘奖中奖列表">
								神秘奖中奖列表
							</li>
							<li class="list-group-item {if $_GPC['do']=='lottory_record' && $award_id==13}active{/if}" onclick="window.location.href = './index.php?c=site&a=entry&id=10&award_id=13&do=lottory_record&m=meepo_xianchang';" style="cursor:pointer; overflow:hidden;" kw="幸运奖中奖列表">
								幸运奖中奖列表
							</li>
							<li class="list-group-item {if $_GPC['do']=='lottory_receive'}active{/if}" onclick="window.location.href = './index.php?c=site&a=entry&id=10&award_id=13&do=lottory_receive&m=meepo_xianchang';" style="cursor:pointer; overflow:hidden;" kw="领奖管理">
								领奖管理
							</li>
						</ul>
					</div>
					<script type="text/javascript">
						require(['bootstrap'], function(){
							$('.ext-type').click(function(){
								var id = $(this).data('id');
								util.cookie.del('ext_type');
								util.cookie.set('ext_type', id, 8640000);
								location.reload();
								return false;
							});

							$('#search-menu input').keyup(function() {
								var a = $(this).val();
								$('.big-menu .list-group-item, .big-menu .panel-heading').hide();
								$('.big-menu .list-group-item').each(function() {
									$(this).css('border-left', '0');
									if(a.length > 0 && $(this).attr('kw').indexOf(a) >= 0) {
										$(this).parents(".panel").find('.panel-heading').show();
										$(this).show().css('border-left', '3px #428bca double');
									}
								});
								if(a.length == 0) {
									$('.big-menu .list-group-item, .big-menu .panel-heading').show();
								}
							});
						});
					</script>
				</div>
				<div class="col-xs-12 col-sm-9 col-lg-10">
